using System;
using System.Data;
using System.Data.SqlTypes;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for Category
/// </summary>
namespace Web.Core.Objects
{
    public class Category
    {
        int id;

        public int Id
        {
            get { return id; }
            set { id = value; }
        }
        string name;

        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        string description;

        public string Description
        {
            get { return description; }
            set { description = value; }
        }
        string image;
        public string Image
        {
            get { return image; }
            set { image = value; }
        }
        int sequence;

        public int Sequence
        {
            get { return sequence; }
            set { sequence = value; }
        }

        int parent;

        public int Parent
        {
            get { return parent; }
            set { parent = value; }
        }

        bool top;

        public bool Top
        {
            get { return top; }
            set { top = value; }
        }
        int manufact;

        public int Manufact
        {
          get { return manufact; }
          set { manufact = value; }
        }
        ShopContent content;

        public ShopContent Content
        {
            get { return content; }
            set { content = value; }
        }
        public Category()
        {
        }

        public Category(string n, string d, string i, string l)
        {
            this.Name = n;
            this.Description = d;
            this.Image = i;
        }
        public Category(int id, string i, int s,int p,int m)
        {
            this.Id = id;
            this.Image = i;
            this.Sequence = s;
            this.Parent = p;
            this.Manufact = m;
        }
        public Category(int id, string i, int s, ShopContent c)
        {
            this.Id = id;
            this.Image = i;
            this.Sequence = s;
            this.Content = c;
        }
    }
}
